<script language="javascript" type="text/javascript">
  function State(name,code)
{
  this.name=name
  this.code=code
}
  var state_array=new Array()
  state_array[0]=new State("Alabama","AL")
  state_array[1]=new State("SiChuan","SC")
  var array1=[1,2,3,4,5,6]

  document.write("The code for "+state_array[0].name+" is "+state_array[1].code+"<br>")
  document.write("The length of Array is "+state_array.length+"<br>")
  document.write("new method ="+array1.pop()+"<br>")
  array1.push("new")
  //array1.reverse()
  array1.shift()
  document.write("valueOf result= "+array1.valueOf()+"<br>")
  document.write("slice result= "+array1.slice(-1,1)+"<br>")
  alert(array1[ww])
</script>
